package com.amos.service.impl;

import com.amos.base.base.Result;
import com.amos.base.entity.Account;
import com.amos.base.entity.CurrentSession;
import com.amos.base.repository.Repository;
import com.amos.base.service.AbstractService;
import com.amos.repository.AccountRepository;
import com.amos.service.AccountService;
import com.amos.service.dto.AccountDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhuqb
 *
 */
@Service
public class AccountServiceImpl extends AbstractService<AccountDTO, Account> implements AccountService<AccountDTO> {

    @Autowired
    AccountRepository accountRepository;

    @Override
    protected Repository<Account> getRepository() {
        return accountRepository;
    }

    @Override
    protected Result validate(AccountDTO dto) {
        return null;
    }

    @Override
    protected CurrentSession getSession() {
        return null;
    }

    @Override
    protected void savePropertySet(AccountDTO dto, String id) {

    }

    @Override
    protected void loadPropetySet(AccountDTO dto) {

    }

    @Override
    public AccountDTO list(AccountDTO dto) {
        return null;
    }
}
